﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YiLong.Framework.Config
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
    public class ConfigFileAttribute: Attribute
    {
        private string _relatedPath;
        private bool _i18n;
        public ConfigFileAttribute(string relatedPath)
            :this(false,relatedPath)
        {
        }

        public ConfigFileAttribute(bool i18n, string relatedPath)
        {
            _relatedPath = relatedPath;
            _i18n = i18n;
        }

        public string RelativePath
        {
            get
            {
                return _relatedPath;
            }
        }

        public bool I18N
        {
            get
            {
                return _i18n;
            }
        }
    }
}
